﻿@model YuYuKiCms.Model.PageVm

<div class="art-blockcontent">

    @using (Html.BeginForm(new {newPage = Model}))
    {
        @Html.AntiForgeryToken()

        <fieldset style="border: 0 none;">

            @Html.ValidationSummary(false)

            @Html.HiddenFor(m => m.Id)

            <div class="editor-label">
                @Html.LabelFor(model => model.Title)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.UrlTitle)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UrlTitle)
                @Html.ValidationMessageFor(model => model.UrlTitle)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.PublishDate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.PublishDate)
                @Html.ValidationMessageFor(model => model.PublishDate)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.ExpireDate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ExpireDate)

            </div>

            <p>
                <input type="submit" name="Submit" class="art-button" value="Save" />
            </p>

        </fieldset>
    }
</div>